package Code.Basic.AI.Pathfinding;

import org.jrabbit.base.graphics.transforms.Vector2d;

public class Zone
{
	protected ZoneGeometry geometry;
	protected double[][] vertices;
	
	public Zone(double[][] vertices)
	{
		geometry = new ZoneGeometry(vertices);
		this.vertices = vertices;
	}
	
	public boolean isPointWithin(Vector2d loc)
	{
		return geometry.containsPoint(loc);
	}
	
	public ZoneGeometry getGeometry()
	{
		return geometry;
	}
}
